<?php
error_reporting(0);

include_once 'check.php';
include_once '../comm/config.php';
include_once 'page.class.php';
include_once '../comm/wjt.php';
include_once '../comm/checkpostandget.php';

$tag="center";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>推广赚钱 - 用户中心</title>

<link href="../template/<?=MOBAN?>/css/style.css" rel="stylesheet" type="text/css" />
<link  href="../template/<?=MOBAN?>/css/layout.css" rel="stylesheet" type="text/css" />
<link  href="../template/<?=MOBAN?>/css/comm.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="../js/jquery.js"></script>
<LINK rel=stylesheet type=text/css href="../css/union.css">
<script type="text/javascript"> 
    function jsCopy(e){ 
        e.select(); //选择对象 
        document.execCommand("Copy"); //执行浏览器复制命令

       alert("已复制好，可贴粘。"); 
    } 
</script> 
</HEAD>

<?php
$modtag="center";
include("../template/".MOBAN."/header_user.tpl.php");
?>


<div class='layout_body'>

  <div class="uInfoTop">
     <div class="break"><a href="javascript:void();" onclick="javascript:window.history.back();"><img src="../template/<?=MOBAN?>/images/back.gif" width="29" height="30" border="0" /></a></div>
     <div class="username usernamefont"><?=$_SESSION["duoduouser"]?></div>
     <div class="userstate"><a class="ustatefont" href="exit.php">退出</a></div>
  </div>
  <div class="usertopline"></div>

<div class="clears"></div>
<div class="CreatL">
<ul>
  <li><a href="tradelist.php?act=taobao">返米管理</a></li>
  <li class="UserSel"><a href="tuiguang_url.php"> 我要推广赚米</a></li>
  <li><a href="baobei.php">我的晒吧</a></li>
  <li><a href="huan.php">我的兑换</a></li>
</ul>
</div>
<div class="CreatR">
<ul class="babydetail MarginB10">
    <li class="active"><a href="tuiguang_url.php">我要推广</a></li>
    <li><a href="tuiguang.php">我推广的好友</a></li>
    </ul>
    <div class="clears"></div>
    <div align="left" class="ColorRed">推广成功的好友，只要他从优米库去购物，他所获得米的<?=round(TGBL/FXBL,2)*100?>%就是您的推广佣金！</div>
    <p>&nbsp;</p>
    
    <div class=" clears"></div>
    <div align="right">
    <table width="90%" border="0" cellspacing="0" cellpadding="0" style="margin:0px auto;" align="center">
      <tr>
        <td width="10%" height="75" rowspan="2" align="left" valign="top"><img src="../template/<?=MOBAN?>/images/tgtx.gif" width="58" height="58" /></td>
        <td colspan="6" align="left" valign="middle"><p><strong class="Font14">这是您的专用邀请链接 ，请通过 MSN 或 QQ发送给好友：</strong></p></td>
      </tr>
      <tr>
        <td colspan="2" width="60%"><input id="recom_qq" type="text" value="<?=TGURL?>rec=<?=$_SESSION['dduserid']?>" class="regtxt MarginT10" style="width:464px"></td>
        <td colspan="0" align="left"><input type="button" value="复制推广链接" onclick="jsCopy(document.getElementById('recom_qq'));" class="btn" style="height:37px;width:97px;margin-top:10px"></td>
      </tr>
      <tr>
        <td colspan="7" height="40"></td>
      </tr>
      <tr>
        <td height="75" rowspan="2" align="left" valign="top"><img src="../template/<?=MOBAN?>/images/tglj2.gif" width="58" height="58" /></td>
        <td colspan="6" align="left" valign="middle"><p><strong class="Font14">在支持HTML的网页（比如论坛、博客），可以复制下列HTML代码：</strong></p></td>
      </tr>
    <tr>
      <td colspan="2" align="left" width="60%">
      <textarea class="MarginT10" cols="90" rows="5" id="recom_html">&lt;a href="<?=TGURL?>rec=<?=$_SESSION['dduserid']?>" target="_blank"&gt;Umiku，
  你的米库，最实在的购物优惠网&lt;/a&gt;</textarea></td>
      <td colspan="2" align="left" valign="bottom"><input type="button" value="复制推广链接" onclick="jsCopy(document.getElementById('recom_html'));" class="btn" style="height:37px;width:97px"></td>
    </tr>
    <tr>
      <td colspan="7" height="15" class="MarginT10 MarginB10"></td>
    </tr>
    </table>
    </div>
    <div class="clears"></div>
</div>
<div class="clears"></div>
</div>

<div class="lineclear" style="margin-top:50px"></div>
<?php
include("../template/".MOBAN."/footer.tpl.php");
?>
</body>
</html>
